﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/Main.Master" CodeBehind="ManagerAddInv.aspx.cs" Inherits="Agile_E.ManagerAddInv" %>

<asp:Content ID="addInv" ContentPlaceHolderID="main1" runat="server">
    <div>
<h1>Add Inventory</h1>
<br />
<table style="text-align:left">
<tr><td style="padding-right:15px">
<asp:Label id="lblyear" runat="server" Text="Year:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtyear" runat="server" CssClass="addInvProfileTxtBox" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVyear" ControlToValidate="txtyear" Text="(Required)" Display="Dynamic" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblmake" runat="server" Text="Make:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtmake" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVmake" ControlToValidate="txtmake" Text="(Required)" Display="Dynamic" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblmodel" runat="server" Text="Model:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtmodel" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVmodel" ControlToValidate="txtmodel" Text="(Required)" Display="Dynamic" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblType" runat="server" Text="Type:" Font-Bold="true"></asp:Label></td>
<td><asp:DropDownList ID="ddlType" runat="server" DataTextField="Vehicle_Type" AppendDataBoundItems="true"
 AutoPostBack="true" DataValueField="Vehicle_Type" DataSourceID="srcddlType">
<asp:ListItem Text="--SELECT--" Value="-1"></asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="srcddlType" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        SelectCommand="Select Vehicle_Type from Vehicle_Types"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>" ></asp:SqlDataSource>
</td>
</tr>
<tr>
<td><asp:Label id="lblVIN" runat="server" Text="VIN:" Font-Bold="true"></asp:Label></td>
<td style="padding-right:10px"><asp:TextBox id="txtVIN" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVvin" ControlToValidate="txtVIN" Text="(Required)" Display="Dynamic" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblMileage" runat="server" Text="Mileage:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtMileage" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblExt" runat="server" Text="Exterior:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtExt" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblInt" runat="server" Text="Interior:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtInt" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblEngine" runat="server" Text="Engine:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtEngine" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lbltrmn" runat="server" Text="Transmission:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txttrmn" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblFuel" runat="server" Text="Fuel Type:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtFuel" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblDrivetype" runat="server" Text="Drive Type:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtDriveType" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblhp" runat="server" Text="Horsepower:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txthp" runat="server" CssClass="addInvProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lbltq" runat="server" Text="Torque:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txttq" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td style="padding-right:15px"><asp:Label id="lblFE" runat="server" Text="Fuel Economy(city/highway):" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtFEcity" runat="server" CssClass="addInvProfileTxtBox" Width="68px"></asp:TextBox>
<asp:TextBox ID="txtFEhw" runat="server" CssClass="addInvProfileTxtBox" Width="68px"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblMSRP" runat="server" Text="MSRP:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtMSRP" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblPrice" runat="server" Text="Minimum Price:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtPrice" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblCondition" runat="server" Text="Condition: " Font-Bold="true"></asp:Label></td>
<td><asp:DropDownList ID="ddlConditions" runat="server">
    <asp:ListItem>--SELECT--</asp:ListItem>
    <asp:ListItem>Excellent</asp:ListItem>
    <asp:ListItem>Great</asp:ListItem>
    <asp:ListItem>Good</asp:ListItem>
    <asp:ListItem>Fair</asp:ListItem>
    <asp:ListItem>Poor</asp:ListItem>
    </asp:DropDownList></td>
</tr>
<tr>
<td><asp:Label ID="lblstatus" runat="server" Text="Status:" Font-Bold="true"></asp:Label></td>
<td><asp:DropDownList ID="ddlstatus" runat="server" DataTextField="Vehicle_Status" DataSourceID="srcddlStatus"
   AppendDataBoundItems="true" AutoPostBack="true" DataValueField="Vehicle_Status">
   <asp:ListItem Text="--SELECT--" Value="-1"></asp:ListItem>
   </asp:DropDownList>
  <asp:SqlDataSource ID="srcddlStatus" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        SelectCommand="Select Vehicle_Status from Vehicle_Status"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>" ></asp:SqlDataSource>
</td>
</tr>
<tr>
<td><asp:Label ID="lblDate" runat="server" Text="Date Received:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox ID="txtDate" runat="server" CssClass="addInvProfileTxtBox"></asp:TextBox></td>
</tr>
</table>
</div>
<div>
<br /><br />
<asp:Label ID="lblFeatures" runat="server" Text="Features:" Font-Bold="true" ></asp:Label><br />
<asp:TextBox id="txtFeatures" runat="server" TextMode="MultiLine" 
        Wrap="true" Height="160px" Width="440px"></asp:TextBox>
<br /><br />
<asp:Label id="lblWarranty" runat="server" Text="Warranty:" Font-Bold="true"></asp:Label><br />
<asp:TextBox ID="txtWarranty" runat="server"
     Height="160px" Width="440px" TextMode="MultiLine"></asp:TextBox>
        <br /><br />
        
<asp:Button ID="btnSubmit" Text="Submit" runat="server" onclick="btnSubmit_Click" />
</div>
</asp:Content>